package reflect;

import java.util.Arrays;

import static thread.CurrentThreadDemo.doSome;

public class ArgsDemo {
    public static void main(String[] args) {
        doSome(1);
        doSome(1,"a");
        doSome(1,"a","b");
        doSome(1,"a","b","c");
        doSome(1,"a","b","c","d","a","b","c","d","b","c","d","a","b","c","d","b","c","d","a","b","c","d","b","c","d","a","b","c","d","b","c","d","a","b","c","d","b","c","d","a","b","c","d","b","c","d","a","b","c","d");
    }
    public static void doSome(int a,String... s){
        System.out.println(s.length);
        System.out.println(Arrays.toString(s));
        System.out.println(a);
    }
}
